import os
from flask import Flask,request,jsonify

app = Flask(__name__)

GREETING = 'hello'

@app.route('/',methods=['GET','POST'])
def hello_world():
    """

    :return:
    """
    name = request.args.get('name',"world")
    greeting_message = f"{GREETING}=={name}"
    return jsonify({"message":greeting_message})

if __name__ == '__main__':
    port =8000
    app.run(host='0.0.0.0',port=port)